import request from '@/utils/request'

// 查询押金列表
export function listDeposit(query) {
  return request({
    url: '/pay/deposit/list',
    method: 'get',
    params: query
  })
}

// 查询押金详细
export function getDeposit(id) {
  return request({
    url: '/pay/deposit/' + id,
    method: 'get'
  })
}

// 新增押金
export function addDeposit(data) {
  return request({
    url: '/pay/deposit/addDeposit',
    method: 'post',
    data: data
  })
}

// 押金退费
export function refundDeposit(data) {
  return request({
    url: '/pay/deposit/refundDeposit',
    method: 'post',
    data: data
  })
}
//确认收费
export function confirmPay(id) {
  return request({
    url: '/pay/deposit/confirmPay/'+id,
    method: 'post'
  })
}

